<?php
namespace app\common\validate;
use \think\Validate;

class Check extends Validate
{
    
    protected $rule = [
        'zid'      => ['require'],
        'money'     => ['require','number'],
        'score'      => ['number'], 
        'account'      => ['require'],
        'account_name'      => ['require'],
        'bank_name'      => ['require'],
        'create_time'      => ['require'],
         'update_time'      => ['require'],
       
    ];

    protected $message = [
        'zid.require'      => '用户必须填写',
        'money.require'     => '提现金额必须填写',
        'score.number'       => '积分只能是一个数字',
        'account.require'      => '账户必须填写',
        'account_name.require'      => '账户拥有人必须填写',
        'bank_name.require'      => '提现方式必须填写',
        'create_time.require'      => '添加时间必须填写',
        'update_time.require'      => '审核时间必须填写',

    ];

    protected $scene = [
    'add' => ['zid', 'money', 'score','account','account_name','bank_name','create_time'],
    'edit' => [ 'money', 'account','account_name','bank_name','update_time'],
       
    ];

}
